﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="container container-bg top80">
    <div class="row-fluid">
        <div class="span2">
            <div class="tabbable tabs-left">
                <ul class="nav nav-tabs user-nav-list">                    
                    @{                        
                        Hetang.Models.Interface.ISessionRepository _sr = new Hetang.Models.Repository.SessionRepository();                    
                        switch (_sr.GetUserType())
                        {
                            case Hetang.Models.Config.UserType.person:
                            <li>@Html.ActionLink("求职基本信息", "index", "person", new { Area = "User" }, null)</li>
                            <li>@Html.ActionLink("上传个人照片", "photo", "person", new { Area = "User" }, null)</li>
                                break;
                            case Hetang.Models.Config.UserType.company:
                            <li>@Html.ActionLink("公司基本信息", "index", "company", new { Area = "User" }, null)</li>
                            <li>@Html.ActionLink("发布招聘信息", "publish", "company", new { Area = "User" }, null)</li>
                            <li>@Html.ActionLink("招聘信息管理", "manage", "company", new { Area = "User" }, null)</li>
                            <li>@Html.ActionLink("上传企业Logo", "photo", "company", new { Area = "User" }, null)</li>
                                break;
                        }
                    }
                    <li><hr style="margin:10px 0;border-top-color:#ddd" /></li>
                    <li>@Html.ActionLink("账户基本信息", "index", "account", new { Area = "User" }, null)</li>
                    <li>@Html.ActionLink("重置密码", "resetpwd", "account", new { Area = "User" }, null)</li>
                </ul>
            </div>
        </div>
        <div class="span10">
            <div class="page-header">
                <h1>@Html.Raw(ViewBag.SettingTitle) @{if (ViewBag.Required != null) { if(ViewBag.Required){ <small class='muted'>( <span class='text-error'>*</span> 为必填项)</small>}; };}</h1>
            </div>
            @RenderBody()
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $(".user-nav-list a").each(function (index) {
            if (location.pathname.toLowerCase() == $(this).attr("href").toLowerCase()) {
                $(this).parent().addClass("active");
            }
        });        

        if ($(".auto-hidden").length > 0) {
            setTimeout(function () {
                $(".auto-hidden").fadeOut(2000);
            }, 5000);
        }
    });
</script>
